package me.weijing.common.model;

import com.google.gson.annotations.Expose;

public class MessageData {
    private String body;// 消息
    @Expose(serialize = false)
    private String filePath;// 本地路径
    private MessageType type;// 消息类型
    @Expose(serialize = false)
    private long length;// 大小
    private long eid;// 事件id
    private long voiceTime;// 语音时间
    private Location location;// 位置信息
    private int chatId;// 聊天Id
    private Module module;// 通讯模式

    public MessageData() {

    }

    public MessageData(String body, MessageType type, int chatId, Module module) {
        super();
        this.body = body;
        this.type = type;
        this.chatId = chatId;
        this.module = module;
    }

    public MessageData(String filePath, MessageType type, long length, int chatId, Module module) {
        super();
        this.filePath = filePath;
        this.type = type;
        this.length = length;
        this.chatId = chatId;
        this.module = module;
    }

    public MessageData(MessageType type, Location location, int chatId, Module module) {
        super();
        this.type = type;
        this.location = location;
        this.chatId = chatId;
        this.module = module;
    }

    public MessageData(String filePath, MessageType type, long length, long voiceTime, int chatId, Module module) {
        super();
        this.filePath = filePath;
        this.type = type;
        this.length = length;
        this.voiceTime = voiceTime;
        this.chatId = chatId;
        this.module = module;
    }

    public MessageData(String body, String filePath, MessageType type, long length, long eid, long voiceTime, Location location, int chatId, Module module) {
        super();
        this.body = body;
        this.filePath = filePath;
        this.type = type;
        this.length = length;
        this.eid = eid;
        this.voiceTime = voiceTime;
        this.location = location;
        this.chatId = chatId;
        this.module = module;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public long getEid() {
        return eid;
    }

    public void setEid(long eid) {
        this.eid = eid;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public long getVoiceTime() {
        return voiceTime;
    }

    public void setVoiceTime(long voiceTiem) {
        this.voiceTime = voiceTiem;
    }

    public int getChatId() {
        return chatId;
    }

    public void setChatId(int chatId) {
        this.chatId = chatId;
    }

    public Module getModule() {
        return module;
    }

    public void setModule(Module module) {
        this.module = module;
    }
}
